<script type="text/html" template>
    <link rel="stylesheet" href="{{ layui.setter.base }}style/print.css?v={{ layui.setter.version }}" media="all">
</script>
<div class="child-box">
    <div class="layui-card layadmin-header mb20 print-hide">
        <div class="layui-breadcrumb" lay-filter="breadcrumb">
            <a href="javascript:" lay-href=""><i class="iconfont iconhome"></i>首页</a>
            <a href="javascript:" lay-href="/order/list">委托进口</a>
            <a href="javascript:" lay-href="/order/list">订单列表</a>
            <a><cite>委托书</cite></a>

            <div class="layui-card-header-left" title="刷新" zmark-event="layui.manage.render">
                <i class="layui-icon layui-icon-refresh layui-anim" zmark-anim="layui-anim-rotate"></i>
            </div>
        </div>
    </div>
    <div class="layui-card">
        <form class="layui-form" method="post" lay-filter="form-order-base" id="orderMainForm">
            <div class="layui-card-header print-hide">
                <span class="def-fc">
                    <a href="javascript:" title="返回" class="head-go-back" onclick="history.back()"><i class="iconfont iconfanhui"></i></a>
                </span>
                <div class="fr">
                    <button type="button" class="layui-btn hollowing" onclick="javascript:window.print()"><i class="iconfont icondayin"></i>打印</button>
                </div>
            </div>
            <div class="layui-card-body">
                <div class="print-area" id="print-cost-view"></div>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="print-cost-temp">
    <div class="page-break">
        <div class="head">
            <div class="title18">委托进口货物确认单</div>
            <div class="title18">GOODS IMPORT CONFIRM FORM</div>
        </div>
        <table style="width: 100%">
            <tr>
                <td width="90">编号： </td>
                <td width="40%"><div name="docNo">{{d.orderNo}}</div></td>
                <td width="90">委托日期</td>
                <td ><div name="orderDate">{{d.orderDate}}</div></td>
            </tr>
            <tr>
                <td>委托方：</td>
                <td><div name="customerName">{{d.customerName}}</div></td>
                <td>代理方：</td>
                <td><div name="buyerName">{{d.subjectName}}</div></td>
            </tr>
            <tr>
                <td>供应商：</td>
                <td><div name="supplierName">{{d.supplierName}}</div></td>
                <td>通关口岸：</td>
                <td>{{layui.com.removeNull(d.iePortName)}}</td>
            </tr>
        </table>
        <div class="print-tab">
            <table>
                <thead>
                <tr>
                    <th>序号</th>
                    <th>品名</th>
                    <th>品牌</th>
                    <th>型号</th>
                    <th>产地</th>
                    <th>数量</th>
                    <th>单位</th>
                    <th>报关单价</th>
                    <th>报关总价</th>
                    <th>币制</th>
                    <th>净重KG</th>
                    <th>毛重KG</th>
                    <th>箱数</th>
                </tr>
                </thead>
                <tbody>
                {{# layui.each(d.members,function(i,o){}}
                <tr>
                    <td class="t-a-c">{{i+1}}</td>
                    <td>{{o.name}}</td>
                    <td>{{o.brand}}</td>
                    <td>{{o.model}}</td>
                    <td>{{o.countryName}}</td>
                    <td class="t-a-r">{{o.quantity}}</td>
                    <td>{{o.unitName}}</td>
                    <td class="t-a-r">{{o.decUnitPrice}}</td>
                    <td class="t-a-r">{{o.decTotalPrice}}</td>
                    <td>{{d.currencyName}}</td>
                    <td class="t-a-r">{{o.netWeight}}</td>
                    <td class="t-a-r">{{o.grossWeight}}</td>
                    <td class="t-a-r">{{o.cartonNum}}</td>
                </tr>
                {{#});}}
                <tr>
                    <td colspan="5">合计 Total：</td>
                    <td class="t-a-r tquantity">{{d.total.tquantity}}</td>
                    <td>&nbsp;</td>
                    <td class="t-a-r">&nbsp;</td>
                    <td class="t-a-r ttotalPrice">{{d.total.ttotalPrice}}</td>
                    <td>&nbsp;</td>
                    <td class="t-a-r tnetWeight">{{d.total.tnetWeight}}</td>
                    <td class="t-a-r tgrossWeight">{{d.total.tgrossWeight}}</td>
                    <td class="t-a-r tcartonNum">{{d.total.tcartonNum}}</td>
                </tr>
                </tbody>
            </table>
        </div>

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody><tr>
                <td width="60" height="23" align="left"><b>说明</b></td>
                <td align="left" width="60"></td>
            </tr>
            <tr>
                <td width="60" height="23" align="left">1)&nbsp;&nbsp;请选择香港/境外/保税仓交货方式：</td>
                <td align="left" width="60">■ <span name="deliveryModeName">{{d.deliveryModeName}}</span></td>
            </tr>
            <tr>
                <td width="60" height="23" align="left">&nbsp;&nbsp;&nbsp;香港/境外详细提货地址（如需代理方代为提货）及联系人：</td>
                <td width="60" align="left">
                    <span name="takeLinkPerson">{{layui.com.removeNull(d.takeLinkPerson)}}</span>
                    <span name="takeLinkTel">{{layui.com.removeNull(d.takeLinkTel)}}</span>
                    <span name="takeAddress">{{layui.com.removeNull(d.takeAddress)}}</span>
                </td>
            </tr>
            <tr>
                <td width="60" height="23" align="left">2)&nbsp;&nbsp;请选择国内交货方式： </td>
                <td width="60" align="left">■ <span name="receivingModeName">{{d.receivingModeName}}</span> <span name="logisticsCompanyName">{{layui.com.removeNull(d.logisticsCompanyName)}}</span></td>
            </tr>
            <tr>
                <td width="60" height="23" align="left" colspan="2">&nbsp;&nbsp;&nbsp;提货信息：
                    <span name="selfWareName">{{layui.com.removeNull(d.selfWareName)}}</span>
                    <span name="selfLinkPerson">{{layui.com.removeNull(d.selfLinkPerson)}}</span>
                    <span name="selfPersonId">{{layui.com.removeNull(d.selfPersonId)}}</span>
                    <span name="selfMemo">{{layui.com.removeNull(d.selfMemo)}}</span>
                </td>
            </tr>
            <tr>
                <td width="60" height="23" align="left">3)&nbsp;&nbsp;客户特别要求（备注）：</td>
                <td width="60" align="left"><span name="memo">{{d.memo}}</span></td>
            </tr>
            </tbody>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody><tr>
                <td width="60%" height="80" align="left"></td>
                <td align="left">委托方签字并盖章确认：</td>
                <td align="left"></td>
            </tr>
            </tbody>
        </table>

    </div>
</script>
<script>
    layui.use('printEntrust', layui.factory('printEntrust'));
</script>